export default {
	methods: {
		async addShop(query = {}) {
			try {
				const res = await this.$http.post('shopEntry', query);
				if (res.code == 1) {
					this.$api.msg('入驻成功');
					this.reset();
					uni.navigateTo({
						url: '/pages/index/index'
					});
				} else {
					this.$api.msg((res || {}).msg || '入驻失败');
				}
			} catch (e) {
				this.$api.msg((e || {}).msg || '系统繁忙请稍后重试');
			}
		}
	}
};
